package com.baicai.componentdatadeliver;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Create By：bai_cai，on 2019/1/16
 * God bless my code!
 */
public class SecondActivity extends Activity {

    public static final String TAG = "SecondActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        Intent intent = getIntent();
        if (intent != null) {
            int intValue = intent.getIntExtra("intKey", -1);
            Log.d(TAG, "intValue == " + intValue);
        }
    }
}
